<div class="card flex flex-col justify-between h-full mt-4">
  <div class="card-divider">
    <h2 class="card-title justify-between">
        <span class="text-black font-bold"><%= t("decidim.elections.admin.dashboard.calendar.title") %></span>
    </h2>
  </div>

  <div class="pb-4">
    <div class="row column">
      <div>
        <span class="font-semibold"><%= t("decidim.elections.admin.dashboard.calendar.start_at") %></span>
        <span><%= election.manual_start? ? t("decidim.elections.admin.dashboard.calendar.manual_start") : l(election.start_at, format: :decidim_short) %></span>
      </div>
      <div>
        <span class="font-semibold"><%= t("decidim.elections.admin.dashboard.calendar.end_at") %></span>
        <span><%= l(election.end_at, format: :decidim_short) %></span>
      </div>
      <% if election.published_results? %>
        <div>
          <span class="font-semibold"><%= t("decidim.elections.admin.dashboard.calendar.published_results_at") %></span>
          <span><%= l(election.published_results_at.presence || election.end_at, format: :decidim_short) %></span>
        </div>
      <% end %>
    </div>
  </div>
</div>
<div class="item__edit-sticky">
  <div class="item__edit-sticky-container">
    <% if (action_data = election_status_action_data(election)) %>
      <%= form_with url: update_status_election_path(election), method: :put, local: true do %>
        <%= hidden_field_tag :status_action, action_data[:status_action] %>
        <%= button_tag action_data[:label], class: "button button__sm button__secondary" %>
      <% end %>
    <% end %>
  </div>
</div>
